package com.cgy.repository;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.cgy.entity.Xibie;


public interface XibieRepository extends JpaRepository<Xibie, Integer>,JpaSpecificationExecutor<Xibie>{
				
	@Query(value = "delete from Xibie WHERE xid=?1")  
    @Modifying 
    @Transactional 
	Integer deleteXibieByID(Integer xid);
	
}
